import Layout from '@/layout/index'
const PureRouterView = {
  render(h) {
    return h('router-view')
  }
}

export default [
  {
    path: '/inventory',
    name: 'inventory',
    component: Layout,
    meta: { title: '进销存', icon: 'menu-stockManage', menuId: 7, showIndex: 7 },
    children: [
      // {  // 旧版
      //   path: 'stockSearch',
      //   name: 'stockSearch',
      //   component: () => import('@/views/stockManage/stockSearch/index'),
      //   meta: { title: '库存查询', menuId: 20301, showIndex: 1 }
      // },
      {
        path: 'getBottleReturnBottle',
        name: 'getBottleReturnBottle',
        component: () => import('@/views/inventory/getBottleReturnBottle/index'),
        meta: { title: '领瓶还瓶', menuId: 701, showIndex: 1 }
      },
      {
        path: 'outPutStorageManage',
        name: 'outPutStorageManage',
        component: () => import('@/views/inventory/outPutStorageManage/index'),
        meta: { title: '出入库管理', menuId: 703, showIndex: 2 }
      },
      {
        path: 'stockManage',
        name: 'stockManage',
        component: PureRouterView,
        meta: { title: '库存管理', menuId: 704, showIndex: 3 },
        children: [
          {
            path: 'inventorySearch',
            name: 'inventorySearch',
            component: () => import('@/views/inventory/stockManage/inventorySearch/index'),
            meta: { title: '库存查询', menuId: 70401, showIndex: 1, activeMenu: '/inventory/stockManage/inventorySearch' }
          },
          // { // 2024-07-31 晋江接站需求
          //   path: 'checkRecord',
          //   name: 'checkRecord',
          //   component: () => import('@/views/inventory/stockManage/checkRecord/index'),
          //   meta: { title: '盘账记录', menuId: 70402, showIndex: 2, activeMenu: '/inventory/stockManage/inventorySearch' }
          // },
          {
            path: 'stockCheck',
            name: 'stockCheck',
            component: () => import('@/views/inventory/stockManage/stockCheck/index'),
            meta: { title: '库存盘点', menuId: 70403, showIndex: 3, activeMenu: '/inventory/stockManage/inventorySearch' }
          },
          {
            path: 'stockCarryOver',
            name: 'stockCarryOver',
            component: () => import('@/views/inventory/stockManage/stockCarryOver/index'),
            meta: { title: '库存结转', menuId: 70404, showIndex: 4, activeMenu: '/inventory/stockManage/inventorySearch' }
          },
          {
            path: 'ledger',
            name: 'ledger',
            component: () => import('@/views/inventory/stockManage/ledger/index'),
            meta: { title: '出入库台账', menuId: 70405, showIndex: 5, activeMenu: '/inventory/stockManage/inventorySearch' }
          },
          {
            path: 'warehouseManage',
            name: 'warehouseManage',
            component: () => import('@/views/inventory/warehouseManage/index'),
            meta: { title: '仓库管理', menuId: 70406, showIndex: 6, activeMenu: '/inventory/stockManage/inventorySearch' }
          },
          {
            path: 'plannedFillingOrder',
            name: 'plannedFillingOrder',
            component: () => import('@/views/inventory/stockManage/plannedFillingOrder/index'),
            meta: { title: '充装单', menuId: 70407, showIndex: 7, activeMenu: '/inventory/stockManage/inventorySearch' }
          }
        ]
      },
      {
        path: 'cylinderCirculation',
        name: 'cylinderCirculation',
        component: () => import('@/views/inventory/getBottleReturnBottle/components/cylinderCirculation'),
        meta: { title: '气瓶流转', menuId: 702, showIndex: 4 }
      },
      {
        path: 'privateBottle',
        name: 'privateBottle',
        component: () => import('@/views/inventory/privateBottle/index'),
        meta: { title: '自有瓶库管理', menuId: 705, showIndex: 5 }
      },
      {
        path: 'purchaseUnload',
        name: 'purchaseUnload',
        component: () => import('@/views/inventory/purchaseUnload/index'),
        meta: { title: '燃气采购', menuId: 706, showIndex: 6 }
      },
      {
        path: 'cylinderRecoveryManage',
        name: 'cylinderRecoveryManage',
        component: () => import('@/views/inventory/cylinderRecoveryManage/index'),
        meta: { title: '气瓶回收管理', menuId: 707, showIndex: 7 }
      },
      {
        path: '',
        linkUrl: '',
        meta: { title: '气瓶档案', menuId: 708, showIndex: 8 }
      },
      {
        path: 'unifiedNumber',
        name: 'unifiedNumber',
        component: () => import('@/views/inventory/unifiedNumber/index'),
        meta: { title: '气瓶统一码', menuId: 709, showIndex: 9 }
      }
    ]
  }
]
